import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    component: resolve => require(['../pages/Index'], resolve)
  }, {
    path: '/login',
    component: resolve => require(['../pages/Login'], resolve)
  }, {
    path: '/register',
    component: resolve => require(['../pages/Register'], resolve)
  }, {
    path: '/resetpassword',
    component: resolve => require(['../pages/ResetPassword'], resolve)
  }, {
    path: '/agreement',
    component: resolve => require(['../pages/Agreement'], resolve)
  }, {
    path: '/news-list',
    component: resolve => require(['../pages/NewsList'], resolve)
  }, {
    path: '/notice-list',
    component: resolve => require(['../pages/NoticeList'], resolve)
  }, {
    path: '/news-text',
    component: resolve => require(['../pages/NewsText'], resolve)
  }, {
    path: '/notice-text',
    component: resolve => require(['../pages/NoticeText'], resolve)
  }, {
    path: '/about',
    component: resolve => require(['../pages/About'], resolve),
    children: [{
      path: '',
      redirect: 'brief'
    }, {
      path: 'brief',
      component: resolve => require(['../pages/Brief'], resolve)
    }, {
      path: 'business',
      component: resolve => require(['../pages/Business'], resolve)
    }, {
      path: 'contact',
      component: resolve => require(['../pages/Contact'], resolve)
    }, {
      path: 'hire',
      component: resolve => require(['../pages/Hire'], resolve)
    }, {
      path: 'honor',
      component: resolve => require(['../pages/Honor'], resolve)
    }, {
      path: 'parter',
      component: resolve => require(['../pages/Parter'], resolve)
    }]
  }, {
    path: '/helpcenter',
    component: resolve => require(['../pages/HelpCenter'], resolve)
  }, {
    path: '/personalcenter',
    component: resolve => require(['../pages/PersonalCenter'], resolve),
    children: [{
      path: '',
      redirect: 'aptitude'
    }, {
      path: 'aptitude',
      component: resolve => require(['../pages/Aptitude'], resolve)
    }, {
      path: 'trans-record',
      component: resolve => require(['../pages/TransRecord'], resolve)
    }, {
      path: 'transac',
      component: resolve => require(['../pages/Transac'], resolve)
    }, {
      path: 'law',
      component: resolve => require(['../pages/Law'], resolve)
    }, {
      path: 'message',
      component: resolve => require(['../pages/Message'], resolve)
    }, {
      path: 'modify-phonenum',
      component: resolve => require(['../pages/ModifyPhonenum'], resolve)
    }, {
      path: 'modify-password',
      component: resolve => require(['../pages/ModifyPassword'], resolve)
    }]
  }, {
    path: '/submit-apply',
    component: resolve => require(['../pages/SubmitApply'], resolve)
  }, {
    path: '/confirm-aptitude',
    component: resolve => require(['../pages/ConfirmAptitude'], resolve)
  }, {
    path: '/contract-review',
    component: resolve => require(['../pages/ContractReview'], resolve)
  }, {
    path: '/transac-service-wait',
    component: resolve => require(['../pages/TransacServiceWait'], resolve)
  }, {
    path: '/transactionsurveillance',
    component: resolve => require(['../pages/TransactionSurveillance'], resolve)
  }, {
    path: '/service-evalua',
    component: resolve => require(['../pages/ServiceEvalua'], resolve)
  }, {
    path: '/lawyerlist',
    component: resolve => require(['../pages/LawyerList'], resolve)
  }, {
    path: '/lawyerdetails',
    component: resolve => require(['../pages/LawyerDetails'], resolve)
  }, {
    path: '/lawyer-evaluate',
    component: resolve => require(['../pages/LawyerEvaluate'], resolve)
  }, {
    path: '/transac-monitor-list',
    component: resolve => require(['../pages/TransacMonitorList'], resolve)
  }, {
    path: '/transac-monitor-submit',
    component: resolve => require(['../pages/TransacMonitorSubmit'], resolve)
  }, {
    path: '/payment',
    component: resolve => require(['../pages/Payment'], resolve)
  }, {
    path: '/rule',
    component: resolve => require(['../pages/Rule'], resolve)
  }, {
    path: '/law-service-pay',
    component: resolve => require(['../pages/LawServicePay'], resolve)
  }, {
    path: '/law-payment',
    component: resolve => require(['../pages/LawPayment'], resolve)
  }, {
    path: '/law-service-chart',
    component: resolve => require(['../pages/LawServiceChart'], resolve)
  }, {
    path: '/law-service-monitor',
    component: resolve => require(['../pages/LawServiceMonitor'], resolve)
  }, {
    path: '/law-service-evalua',
    component: resolve => require(['../pages/LawServiceEvalua'], resolve)
  }]
})
